<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>卖家-修改个人信息</title>
<link href="<?php echo $this->_webroot('/user/css/common.css'); ?>" rel="stylesheet" type="text/css" />
<link href="<?php echo $this->_webroot('/user/css/content1.css'); ?>" rel="stylesheet" type="text/css" />
<script src="<?php echo $this->_webroot('/user/js/jquery-1.7.1.min.js'); ?>" type="text/javascript"></script>
<script src="<?php echo $this->_webroot('/user/js/common.js'); ?>" type="text/javascript"></script>


</head>
<body>
<psp:tags     htmlname='user_topnav1'  iconname='usertopnav1' />
<psp:tags     htmlname='user_topsearch'  iconname='usertopsearch' />

<div class="main">
	<div class="main-left">
    	<div class="title">会员管理中心</div>
        <psp:tags     htmlname='user_menulist'  iconname='usermenulist' />
    </div>
<link href="<?php echo $this->_webroot('/user/css/shoprequest.css'); ?>" rel="stylesheet" type="text/css" />   
    <div class="main-right main_right">
	

	
            <div class="cont">
                <div class="cont_title">文章列表<span class="tr_op"><a href="<?php echo $this->_url('shoparticle/add');?>">添加文章</a></span></div>
                <div class="search">
				<form style="float:left;" name="search_form" method="get" action="<?php echo $this->_url('shoparticle/index');?>">
	                   		<select name="id">
								<option value="0">请选择分类</option>
								<?php foreach($catlist as $value) { ?>
								<option value="<?php echo $value['shoparticlecat']['id']; ?>" <?php if($cat_id==$value['shoparticlecat']['id']){echo "selected";} ?> ><?php echo $value['shoparticlecat']['cat_name'];?></option>
								<?php } ?>
							</select>
					<input type="submit" value="搜索" >
				</form>
			    </div>
			
				<table width="100%" border="0" cellspacing="0">
            <tr >
				<th width="40px">ID</th>
				<th width="200px" align="left">文章标题</th>
				<th width="110px" align="left">文章分类</th>
				<th width="36px">显示</th>
				<th width="200px">添加时间</th>
				<th width="50px">操作</th>
			</tr>
			
			<?php if($result) {
			foreach($result as $value) { ?>
			<tr style="text-align:center">
				<td><?php echo $value['shoparticle']['id'];?></td>
				<td class="limit" align="left">
					<?php if($value['shoparticle']['is_blod'] && $value['shoparticle']['tag_color']) { ?>
						<span><a href="<?php echo $this->_url('shop/newshow/'.$shopid.'/'.$value['shoparticle']['id']);?>" style="color:<?php echo $value['shoparticle']['tag_color'];?>"><b><?php echo $value['shoparticle']['title'];?></b></a></span>
					<?php } else if($value['shoparticle']['is_blod']) { ?>
						<span><a href="<?php echo $this->_url('shop/newshow/'.$shopid.'/'.$value['shoparticle']['id']);?>"><b><?php echo $value['shoparticle']['title'];?></b></a></span>
					<?php } else if($value['shoparticle']['tag_color']) { ?>
						<span><a href="<?php echo $this->_url('shop/newshow/'.$shopid.'/'.$value['shoparticle']['id']);?>" style="color:<?php echo $value['shoparticle']['tag_color'];?>"><?php echo $value['shoparticle']['title'];?></a></span>
					<?php }else {?>
						<span><a href="<?php echo $this->_url('shop/newshow/'.$shopid.'/'.$value['shoparticle']['id']);?>"><?php echo $value['shoparticle']['title'];?></a></span>
					<?php } ?>
				</td>
				<td align="left"><a href="<?php echo $this->_url('shop/news/'.$shopid);?>"><?php echo $catinfo[$value['shoparticle']['cat_id']]['cat_name'];?></a></td>
				<td>
					<?php if($value['shoparticle']['is_show']) { ?>
					<img src="<?php echo $this->_webroot('user/images/yes.gif'); ?>" onclick="toggle_show(this,'<?php echo $value['shoparticle']['id']; ?>')" />
					<?php } else { ?>
					<img src="<?php echo $this->_webroot('user/images/no.gif'); ?>" onclick="toggle_show(this,'<?php echo $value['shoparticle']['id']; ?>')" />
					<?php } ?>
				</td>
				<td><?php echo $value['shoparticle']['add_time'];?></td>
				<td>
					<a href="<?php echo $this->_url('shoparticle/edit/'.$value['shoparticle']['id']);?>">修改</a><br />
					<a href="<?php echo $this->_url('shoparticle/del/'.$value['shoparticle']['id']);?>" onclick="return confirm('您确定要删除这条消息吗？');">删除</a>
				</td>
			</tr>
			<?php }?>
			<?php } else { ?>
			<tr>
				<td colspan="9" class="center">暂无信息!</td>
			</tr>
			<?php } ?>
			<tr>
				<td colspan="9" class="center">
				共<?php  echo $this->params['paging']['shoparticle']['count']; ?>条记录
<a href="<?php  echo Router::ArrayToUrl($this->params['paging']['shoparticle']['pageurl'] + array('page'=> '1')) ; ?>">首页</a>
<?php if ( $this->params['paging']['shoparticle']['prevPage'] ) { ?><a href="<?php  echo Router::ArrayToUrl($this->params['paging']['shoparticle']['pageurl'] + array('page'=> $this->params['paging']['shoparticle']['page'] -1 )) ; ?>">上一页</a><?php } ?>
<?php if ( $this->params['paging']['shoparticle']['nextPage'] ) { ?><a href="<?php  echo Router::ArrayToUrl($this->params['paging']['shoparticle']['pageurl'] + array('page'=> $this->params['paging']['shoparticle']['page'] +1 )) ; ?>">下一页</a><?php } ?>
<a href="<?php  echo Router::ArrayToUrl($this->params['paging']['shoparticle']['pageurl'] + array('page'=> $this->params['paging']['shoparticle']['pageCount'])) ; ?>">尾页</a>
当前第<?php  echo $this->params['paging']['shoparticle']['page']; ?>页/共<?php  echo $this->params['paging']['shoparticle']['pageCount']; ?>页				
				</td>
			</tr>
			
				</table>			  
			  
			  
			  
			  
            </div>
	
	

        

    </div>
    <div class="clear"></div>
</div>

<div class="footer">
    <psp:tags     htmlname='user_footer_helper'  iconname='userfooterhelper' />

</div>


</body>
</html>